package dataBase;

import java.sql.SQLException;
import java.sql.Connection;  
import java.sql.DriverManager;
import java.util.logging.Level;
import java.util.logging.Logger;

public class conexao {
    
    public Connection getConnection() throws SQLException{
            String url = "jdbc:postgresql://179.98.76.248:5432/helpdesk";  
            String usuario = "postgres";  
            String senha = "opendevelop";  
        try {
            Class.forName("org.postgresql.Driver");
        } catch (ClassNotFoundException ex) {
            Logger.getLogger(conexao.class.getName()).log(Level.SEVERE, null, ex);
        }
  
            Connection con;  
  
            return con = DriverManager.getConnection(url, usuario, senha);             
    }
}
